//
//  musicanInfo.m
//  Behinders
//
//  Created by sigure on 14-11-3.
//  Copyright (c) 2014年 sigure. All rights reserved.
//

#import "musicanInfo.h"

@interface musicanInfo()
{
    UIImage *_imageABC;
}

@end

@implementation musicanInfo

- (instancetype)initWithDict:(NSDictionary *)dict
{
    self = [super init];
    if (self) {
        self.name = dict[@"name"];
        self.img = dict[@"img"];
        self.other = dict[@"other"];
        self.music = dict[@"music"];
        self.tag  = dict [@"tag"];
    }
    return self;
}

+ (instancetype)musicanWithDict:(NSDictionary *)dict
{
    return [[self alloc] initWithDict:dict];
}

- (UIImage *)image
{
    if (!_imageABC) {
        _imageABC = [UIImage imageNamed:self.img];
    }
    return _imageABC;
}


@end
